<template>
	<view>
		<navbar title="通知" :autoBack="true">
			<image src="/static/home/add.png" class="rightbtn" slot='rightbtn' mode=""></image>
		</navbar>
		<view class="con">
			<view class="tabsbox">
				<u-tabs :list="list4" lineWidth="24rpx" lineHeight='7rpx' lineColor="#3262FD" :activeStyle="{
			 	           color: '#010101',
			 	           fontWeight: 'bold',
			 	           transform: 'scale(1.15)'
			 	       }" :inactiveStyle="{
			 	           color: '#3A4E6D',
			 	           transform: 'scale(1)'
			 	       }" itemStyle="padding-left: 20rpx; padding-right: 20rpx; height: 70rpx;font-size:26rpx;">
				</u-tabs>

			</view>
			<view class="box">
				<view class="box__list">
					<scroll-view scroll-y="true" class="box__sc">
						<view class="box__list__b">
							<view class="box__list__item" v-for="(item,index) in list" :key="index">
								<image src="/static/home/notice.png" class="box__list__item__icon" mode=""></image>
								<view class="" style="flex: 1;">
									<view class="u-flex u-flex-y-center u-flex-between">
										<view class="box__list__item__text">
											{{item.text}}
										</view>
										<view class="box__list__item__status" v-if="item.s==1">
											已读
										</view>
										<view class="box__list__item__status1" v-if="item.s==0">
											未读
										</view>
									</view>
									<view class="box__list__item__time">
										2016-04-12 12:20:40
									</view>
								</view>
							</view>
						</view>

					</scroll-view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{text:'中建四局中标通知',s:1},
					{text:'公益活动总结',s:1},
					{text:'中建四局中标通知',s:0},
					{text:'会议通知',s:1},
					{text:'中建四局中标通知',s:0},
					{text:'公司外出旅游通知',s:1},
					{text:'中建四局中标通知',s:0},
					{text:'中建四局中标通知',s:1},
				],
				list4: [{
						name: "通知"
					},
					{
						name: "任务"
					},
					{
						name: "职位绩效"
					},
					{
						name: "善修堂文化"
					},
					{
						name: "运营政策"
					},
					{
						name: "机制与"
					}
				]
			};
		}
	}
</script>

<style lang="scss">
	.rightbtn {
		width: 35rpx;
		height: 36rpx;
	}

	page {
		background-color: #f0f3f7;
	}

	.con {
		.tabsbox {
			padding: 10rpx 10rpx 20rpx;
		}

		.box {
			height: calc(100vh - var(--status-bar-height) - 44px - 70rpx - 30rpx);

			&__list {
				padding: 0 30rpx;
				height: calc(100% - 50rpx);
				&__b{
					padding: 21rpx 0 13rpx 30rpx;
				}
				&__item{
					padding: 31rpx 25rpx 26rpx 0;
					border-bottom: 1rpx rgba(192, 205, 224, .3) solid;
					display: flex;
					align-items: center;
					&__icon{
						width: 84rpx;
						height: 84rpx;
						border-radius: 50%;
						margin-right: 22rpx;
					}
					&__text{
						font-family: PingFang SC;
						font-weight: bold;
						font-size: 28rpx;
						color: #1E1E1E;
						line-height: 28rpx;
						
					}
					&__status{
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #3A4E6D;
						line-height: 24rpx;
					}
					&__status1{
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #3262FD;
						line-height: 24rpx;
					}
					&__time{
						font-family: PingFang SC;
						font-weight: bold;
						font-size: 24rpx;
						color: #8C8C8C;
						line-height: 19rpx;
						margin-top: 16rpx;
					}
				}
			}

			&__sc {
				height: 100%;
				background-color: #fff;
				border-radius: 30rpx;

			}
		}

	}
</style>